package com.company.userController;

import com.company.UseService.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController2 {

    private UserService us;
@Autowired
    public void setUs(UserService us) {
        this.us = us;
    }
    public void sayHi(){
        us.doUseService();
        System.out.println("hi,userController");
    }
}
